# Created by: Olivier Duchateau
# $FreeBSD$

PORTNAME=	librtmp
PORTVERSION=	0.1.1
CATEGORIES=	multimedia python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	python-${PORTNAME}-${PORTVERSION}

MAINTAINER=	olivierd@FreeBSD.org
COMMENT=	Python bindings for librtmp

LICENSE=	BSD

LIB_DEPENDS=	librtmp.so:${PORTSDIR}/multimedia/rtmpdump
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=0.7:${PORTSDIR}/devel/py-cffi

USE_PYTHON=	yes
USE_PYDISTUTILS=	easy_install

PYDISTUTILS_PKGNAME=	python-${PORTNAME}
PYEASYINSTALL_ARCHDEP=	yes

CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

NO_STAGE=	yes
.include <bsd.port.pre.mk>

.if ${PYTHON_REL} < 340
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}singledispatch>=3.4:${PORTSDIR}/devel/py-singledispatch
.endif

.include <bsd.port.post.mk>
